package com.ruoyi.market.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 参数工具类
 * @TableName po_product
 */
@TableName(value ="po_product")
@Data
public class PoProduct2 implements Serializable {

    /**
     * 订单详情id
     */
    private Integer detailId;
    /**
     * 品牌id
     */
    private Integer poBrandId;
    /**
     * 商品类型id
     */
    private Integer poTypeId;
    /**
     * 商品型号名称
     */
    private String productModel;

    /**
     * 数量
     */
    private Integer num;
    /**
     * 计量单位
     */
    private String unit;

    /**
     * 商品单价
     */
    private Double price;
     /**
     * 单个商品总金额
     */
    private Double total;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public PoProduct2(){}

    public PoProduct2(Integer detailId, Integer poBrandId, Integer poTypeId, String productModel, Integer num, String unit, Double price, Double total) {
        this.detailId = detailId;
        this.poBrandId = poBrandId;
        this.poTypeId = poTypeId;
        this.productModel = productModel;
        this.num = num;
        this.unit = unit;
        this.price = price;
        this.total = total;
    }

    @Override
    public String toString() {
        return "PoProduct2{" +
                "detailId=" + detailId +
                ", poBrandId=" + poBrandId +
                ", poTypeId=" + poTypeId +
                ", productModel='" + productModel + '\'' +
                ", num=" + num +
                ", unit='" + unit + '\'' +
                ", price=" + price +
                ", total=" + total +
                '}';
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public Integer getPoBrandId() {
        return poBrandId;
    }

    public void setPoBrandId(Integer poBrandId) {
        this.poBrandId = poBrandId;
    }

    public Integer getPoTypeId() {
        return poTypeId;
    }

    public void setPoTypeId(Integer poTypeId) {
        this.poTypeId = poTypeId;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}